home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-2000 - Modelworks Software
-
- // Insert script helper for:
-
- /**
- @Object: Host
- @Method: openBrowser() opens the file and returns an IEWrapper object.
- The path parameter should be a full path. If the file does not exist
- null will be returned. Note that the object returned is a wrapper object.
- Its only field is webBrowserApp. If the browser.webBrowserApp object is
- null it means that this document is no longer available and needs to be
- opened again.
- @Paragraph:
- The webBrowserApp supports the following properties: AddressBar, Application,
- Busy, Container, Document, FullScreen, Height, Left, LocationName,
- LocationURL, MenuBar, Offline, Parent, ReadyState, RegisterAsBrowser,
- RegisterAsDropTarget, Resizable, Silent, StatusBar, StatusText, TheaterMode,
- ToolBar, Top, TopLevelContainer, Type, Visible, Width. And the following
- methods: ExecWB, GoBack, GoForward, GoHome, GoSearch, Navigate,
- Navigate2, Quit, Refresh, Refresh2, ShowBrowserBar, Stop.
- @Syntax: openBrowser(path, show)
- @Summary: openBrowser - opens the file and returns an IWebBrowser2 object
- */
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- editor.replace("openBrowser(path, show)", selection);
- editor.setActive("Insert openBrowser");
- }
- }
-
- !!/Script
-